import request from "@/utils/request";


export const getMenuTree = async (params)=>{
    return await request.get('api/sys/menu/tree',params)
}

export const getParentMenu = async (params)=>{
    return await request.get('api/sys/menu/parent/list',params)
}

export const getRouters = async () =>{
    return await request.get("api/sys/menu/routes");
}
export const addMenu = async (params)=>{
    return await request.post(
     "api/sys/menu/add",
     params,
    )
}
